# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>

buildarch=4

pkgname=firmware-beaglebone
pkgver=1.0
pkgrel=1
pkgdesc="Additional firmware for BeagleBone"
arch=('armv7h')
url="https://archlinuxarm.org"
license=('custom')
source=('https://github.com/rcn-ee/repos/raw/master/bb-wl18xx-firmware/suite/stretch/debian/wl18xx-conf.bin'
        'https://github.com/rcn-ee/repos/raw/master/bb-wl18xx-firmware/suite/stretch/debian/TIInit_11.8.32.bts'
        'https://github.com/rcn-ee/repos/raw/master/bb-wl18xx-firmware/suite/stretch/debian/wl18xx.conf'
        'https://github.com/rcn-ee/repos/raw/master/bb-wl18xx-firmware/suite/stretch/debian/btwilink-blacklist.conf')
md5sums=('e0db09a1dea22b1fbcb1a5d9aa168215'
         '665b7c25be21933acc30dda44cfcace6'
         'fe7995c200f59f1174a477d97ee3d120'
         '3da97b113423fa1703b1b3acab51cc4b')

package() {
  install -m 0755 -d "${pkgdir}/usr/lib/firmware/updates/ti-connectivity"
  install -m 0755 -d "${pkgdir}/etc/modprobe.d"
  install -m 0644 wl18xx-conf.bin TIInit_11.8.32.bts "${pkgdir}/usr/lib/firmware/updates/ti-connectivity"
  install -m 0644 wl18xx.conf btwilink-blacklist.conf "${pkgdir}/etc/modprobe.d"
}
